package com.yungu.swift.assets.passenger.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.yungu.swift.assets.passenger.model.dto.PassengerInvoiceDto;
import com.yungu.swift.assets.passenger.model.vo.PassengerInvoiceAdminVo;
import com.yungu.swift.base.mapper.IMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 乘客发票Mapper
 *
 * @author cuixiuyin - Generate
 * @version 1.1.1-SNAPSHOT
 * @since 2018-07-04 13:50
 */
public interface PassengerInvoiceMapper extends IMapper<PassengerInvoiceDto> {

    /**
     * 发票详情
     *
     * @param uuid
     * @return List<PassengerInvoiceAdminVo>
     */
    List<PassengerInvoiceAdminVo> detail(@Param("uuid") String uuid);

    /**
     * 后台分页查询
     *
     * @param map        Map
     * @param pageBounds PageBounds
     * @return PageList<PassengerInvoiceAdminVo>
     */
    PageList<PassengerInvoiceAdminVo> queryPageAdmin(Map<String, Object> map, PageBounds pageBounds);

    /**
     * 后台发票信息导出
     *
     * @param var
     * @return
     */
    List<PassengerInvoiceAdminVo> listExport(Map<String, Object> var);
}